package org.example.model;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;

@Data
@Document(collection = "chat_sessions")
public class ChatSession {
    private String id;                    // 会话ID
    private String userId;                // 用户ID
    private String userName;              // 用户名称
    private String customerServiceId;     // 客服ID
    private String customerServiceName;   // 客服名称
    private Date createdAt;               // 创建时间
    private Date lastMessageTime;         // 最后消息时间
    private boolean active;               // 会话是否活跃
}